import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from '../components/Index'
import ExportStuInfo from '../components/ExportStuInfo'
import MainContent from "../components/MainContent";
import ImportTable from "../components/ImportTable";
import ViewStuInfo from "../components/ViewStuInfo";
import AfterExtract from "../components/AfterExtract";
import RollStudents from "../components/RollStudents";

import 'vx-easyui/dist/themes/default/easyui.css';
import 'vx-easyui/dist/themes/icon.css';
import 'vx-easyui/dist/themes/vue.css';
import EasyUI from 'vx-easyui';
Vue.use(EasyUI);

import 'element-ui';
import 'element-ui/lib/index'
import 'element-ui/lib/theme-chalk/index.css'
import Ele from 'element-ui';
Vue.use(Ele);

//excel表格
import JsonExcel from 'vue-json-excel'
import 'vue-json-excel/dist/vue-json-excel.esm'
Vue.component('downloadExcel', JsonExcel)

Vue.use(VueRouter)

export default new VueRouter({
  routes: [
    {
      path: '/',
      name: 'Index',
      redirect: '/mainContent',
      component: Index,
      children:[
        {
          path: '/mainContent',
          name: 'MainContent',
          component: MainContent,
          children:[
            {
              path: '/mainContent/ExportStuInfo',
              component: ExportStuInfo
            },
            {
              path: '/mainContent/ImportTable',
              component: ImportTable
            },
            {
              path: '/mainContent/ViewStuInfo',
              component: ViewStuInfo
            },
            {
              path: '/mainContent/RollStudents',
              component: RollStudents
            }
          ]
        }
      ]
    }
  ]
})
